﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;

namespace sdamarketing
{
    public partial class osnova1 : System.Web.UI.Page
    {
        protected void Page_PreInit(object sender, EventArgs e)
        {
            int role = Int32.Parse(Session["idRole"].ToString());
            if (role == 1)
                MasterPageFile = "~/admin.Master";
            else
                MasterPageFile = "~/Users.Master";
        }
    }
}
